//
//  LGAccountTool.h
//  微博
//
//  Created by MS on 15-12-6.
//  Copyright (c) 2015年 MS. All rights reserved.
////  专门处理账号业务，存储和读取

#import <Foundation/Foundation.h>

#define LGclient_id     @"1440935985"
#define LGclient_secret @"473d11272fb3629a98aecd546638d926"
#define LGredirect_uri  @"http://sns.whalecloud.com/sina2/callback"

@class LGAccount;
@interface LGAccountTool : NSObject

+(void) saveAccount:(LGAccount *)account;

+(LGAccount *) account;

+(void)accessTokenWithCode:(NSString *)code  success:(void(^)())success failure:(void(^)(NSError *error))failure;
@end
